<?php
/**
 * +--------------------------------------------------------+
 * @Created by Phpstorm.
 * @Category StockArticle.php
 * @Depiction
 * @Author hwy <429208948@qq.com>
 * @Date 2022/4/17  17:03
 * +--------------------------------------------------------+
 */

namespace App\Models;


class StockArticle extends BaseModel
{
    protected $table = "stock_articles";
    /**
     * 可以被批量赋值的属性.
     *
     * @var array
     */
    protected $guarded = [];

    public function has_one_article_stock_content()
    {
        return $this->hasOne(StockArticleContent::class, 'article_stock_id', 'id');
    }
}
